<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Document</title>
</head>
<body>
  <script>
    // 加密/转义
    let val = encodeURIComponent('棋手管理')
    console.log(val)
    // 反转义编码, 将转义后的代码还原 decodeURIComponent()
    let name = decodeURIComponent(val)
    console.log(name)
    // 转义整个url 
    encodeURI()
    // 编写 react 组件时，首先要寻找他的状态和数据
  </script>
</body>
</html>